import {MOVIES} from "../constant/movie";
const init = {
  movieList: [],
};

export default function movieReducer(preState = init, action) {
  const { type, data } = action;

  switch (type) {
    case MOVIES:
      return {
        ...preState,
        movieList: data,
      };
    
      default: return preState;
  }
  
 
}
